feat(spl): auto-discover Solana tokens held by wallet - #1370
Draft
sneurlax wants to merge 1 commit into
Draft
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## staging #1370 +/- ##
============================================
+ Coverage 4.84% 74.00% +69.16%
============================================
Files 1092 12 -1080
Lines 109141 704 -108437
============================================
- Hits 5283 521 -4762
+ Misses 103858 183 -103675 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
|
Converting to draft because I have too many open PRs ready--will take another review pass over this before re-readying it |
sneurlax
marked this pull request as draft
August 20, 2026 18:58
Query both the SPL Token and Token-2022 programs for the wallet's token accounts when the token management screen opens, aggregate the accounts per mint, and offer any mint the catalog does not know yet, pre-selected. Decimals are read from the token account and re-read from the mint account when the accounts disagree or the value is out of u8 range; a mint whose decimals cannot be established is skipped rather than shown at the wrong scale. SolanaTokenAPI is now built per call rather than being a mutable singleton, so each wallet discovers over its own RPC client and discovery is testable without a network.
sneurlax
force-pushed
the
feat/spl-discovery
branch
from
August 24, 2026 21:31
c6b8cb2 to
61ad7b5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.